<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/12/15
  Time: 20:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>写文章</title>
</head>
<body>
<%--页眉--%>
<jsp:include page="/layoutHeader.jsp"/>
<h1>编写生活日志</h1>
<form action="user" method="post">
    <%-- 用于提交写文章到 user --%>
    <input name="a" type="hidden" value="write">
    标题：<input name="title"><br><br>
    文章类型：
    <select name="classId">
        <c:forEach items="${articleClass}" var="item">
            <option value="${item.id}">${item.name}</option>
        </c:forEach>
    </select><br><br>

    内容：<textarea name="content" style="width: 500px;height: 450px;"></textarea><br><br>
    <button type="submit">提交</button>
    <hr>
</form>
</body>
</html>
